class Test(object):
    def __init__(self):
        self.__number = 100

    def set_number(self,newNumber):
        self.__number = newNumber

    def get_number(self):
        return self.__number

test = Test()
#此时就无法通过"test.__number"方式访问
test.set_number(200)
print(test.get_number())

